import request from '@/common/request.js'

// 手机登录
const login = (data) => {
	return request({
		url: "/login/cellphone",
		method: "GET",
		data
	})
}

//验证验证码
const verify = (data) => {
	return request({
		url: "/captcha/verify",
		method: "GET",
		data
	})
}

//注册(修改密码)
const cellphone = (data) => {
	return request({
		url: "/register/cellphone",
		method: "GET",
		data
	})
}

//检测手机号码是否已注册
const check = (data) => {
	return request({
		url: "/cellphone/existence/check",
		method: "GET",
		data
	})
}

//发送验证码
const sent = (data) => {
	return request({
		url: "/captcha/sent",
		method: "GET",
		data
	})
}

export {
	login,
	verify,
	cellphone,
	check,
	sent
}